﻿using System.Data.Entity;
using EntitiesContainer;

namespace DAL
{
    //[DbConfigurationType(typeof(MySqlEFConfiguration))]
    public class ShopContext : DbContext
    {
        public ShopContext() : base("Data Source = ALEKS_BOOK\\SQLEXPRESS; Initial Catalog = Shop; Integrated Security = True")
        {
            Database.SetInitializer<ShopContext>(new ShopContextInitializer());
        }
        public DbSet<User> Users { get; set; }
        public DbSet<Product> Products { get; set; }
        public DbSet<ProductCategory> ProductCategories { get; set; }
    }
}
